package com.modelsystem.controller.admin;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
@RequestMapping("admin")
public class AdminController{
	
	private static final String AdminIndexUrl = "resource/view/admin/index";

	@RequestMapping(value = "index.action", method = RequestMethod.GET)
	public String AdminIndex() {
		System.out.println("dddddddddddddddddddd");
		System.out.println("cdadasdadsada");
		System.out.println("++++++++++++++");
		return AdminIndexUrl;
	}

	@RequestMapping(value = "login.action")
	public void index(String userName, String userPassword,
			HttpServletResponse response) throws IOException {
		response.getWriter().print(userName+ "888"+userPassword);
	}

}
